package com.payment_server.util.responseUtil;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseBody<T> {
    private int status;
    private String errMsg;
    private T body;

    public ResponseBody responseBody(String errMsg, T body) {
        this.setErrMsg(errMsg);
        this.setBody(body);
        return this;
    }
}
